package com.ydj.app.protocol.http.oldcms;

import com.ydj.framework.mysql.PageArgs;
import com.ydj.framework.protocol.JsonPageResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

@Getter
public class CmsAccountGetAccountListRes extends JsonPageResponse<CmsAccountGetAccountListRes.CmsAccountGetAccountListResItem> {

    public CmsAccountGetAccountListRes(PageArgs pageArgs) {
        super(pageArgs);
    }

    @Getter
    @Setter
    @Accessors(chain = true)
    public static class CmsAccountGetAccountListResItem {
        @ApiModelProperty(value = "账号", required = true, example = "aefkjbawjknf")
        private String username;

        @ApiModelProperty(value = "名字", required = true, example = "aefkjbawjknf")
        private String name;

        @ApiModelProperty(value = "创建时间", required = true)
        private Date createTime;

        @ApiModelProperty(value = "是否启用", required = true)
        private Boolean enable;
    }
}